# Copyright 2011 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

vars = {
  "chromium_trunk": "http://src.chromium.org/svn/trunk",
  "googlecode_url": "http://%s.googlecode.com/svn",
}

deps = {
  "src/testing/gtest":
    (Var("googlecode_url") % "googletest") + "/tags/release-1.6.0@head",

  "src/tools/gyp":
    (Var("googlecode_url") % "gyp") + "/trunk@933",
}

deps_os = {
  "win": {
    "src/third_party/cygwin":
      Var("chromium_trunk") + "/deps/third_party/cygwin@66844",

    "src/third_party/python_26":
      Var("chromium_trunk") + "/tools/third_party/python_26@89111",
  },
  "mac": {
  },
  "unix": {
  },
}

hooks = [
  {
    # A change to a .gyp, .gypi, or to GYP itself should run the generator.
    "pattern": ".",
    "action": ["python", "src/build/run_gyp"],
  },
]
